package info.pinlab.pinplayer.control;

import info.pinlab.pinplayer.cache.Cache;
import info.pinlab.pinplayer.cache.DiskCache;
import info.pinlab.pinplayer.model.response.Response;
import info.pinlab.pinplayer.model.response.ResponseHeader;
import info.pinlab.pinplayer.model.task.TaskInstance;

public class DiskEnrollController implements EnrollController {

//	private DiskCache cache = null;
	
	public DiskEnrollController(){}
	
	@Override
	public void enrollResponse(Response resp) {
	}

	@Override
	public int getResponseN(TaskInstance taski) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getResponseN(ResponseHeader respHdr) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void setCache(Cache cache) {
		if(cache instanceof DiskCache){
			cache = (DiskCache)cache;
		}else{
			throw new IllegalArgumentException("Argument must be '" + DiskCache.class.getSimpleName() +"'");
		}
	}
}
